package Chapter10_InnerClass;

/**
 * Date: 2019/2/19
 * Time: 11:37
 * User: Driss.
 *
 * 10.6 匿名内部类
 */
public class Parcel7 {
    public Contents contents(){
        return new Contents() {
            private int i = 11;
            public int value() {
                return i;
            }
        };
    }

    public static void main(String[] args) {
        Parcel7 p = new Parcel7();
        Contents c = p.contents();
    }
}
